import { BTState } from "../BTState";
import { IConditional } from "../IConditional";
import { BTAction } from "./BTAction";

/**
 * [行为树]条件节点
 */
export class BTCondition<T> extends BTAction<T> implements IConditional<T>{
    public readonly discriminator = "IConditional";
    public constructor(action: (ctx: T) => BTState) {
        super(action);
    }
}